//
//  EFengShareCommentToolBar.h
//  WZEfengAndEtong
//
//  Created by wanzhao on 16/3/11.
//  Copyright © 2016年 wanzhao. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "UIExpandingTextView.h"
#import "ISTThemeButton.h"

#define EFengShareCommentToolBarMoved    @"EFengShareCommentToolBarMoved"


@protocol EFengShareCommentToolBarDelegate <NSObject>

@optional
- (void)sendMsg:(NSString *)txtMsg;
- (void)EFengShareCommentToolBarDidHiddenEmotionBtn;
@end

@interface EFengShareCommentToolBar : UIView<UITextFieldDelegate,UIExpandingTextViewDelegate>

WeakProperty id<EFengShareCommentToolBarDelegate> eFengShareCommentToolBarDelegate;
- (void)contentTextViewTextDidChangeWithText:(NSString *)text;

AssignProperty BOOL isEmotionShow;
StrongProperty UIExpandingTextView *contentText;
StrongProperty  ISTThemeButton *emotionBtn;
AssignProperty  NSRange textSelectRange;

AssignProperty CGFloat KeyBoardHeight;

+(EFengShareCommentToolBar *)defaultShareCommentToolBar;
- (void)resetToolPositionToInitial;
@end
